< previous page page_113 next page >

Page 113
Chapter 4
Advanced Text
Placing simple text on a screen is easy with Visual Basic. You can use labels to display text and text boxes to allow the user to change text. Using the controls' ForeColor and BackColor properties, you can determine the color of the text. These controls also have a Font property that determines the appearance of the text. The Font property is actually an object with properties you use to specify, for example, the font's name and size and whether it is bold, underlined, or italicized.
Instead of using labels or text boxes, you can also draw text directly on a form, picture box, or printer using the Print command. Like labels and text boxes, these drawing objects have ForeColor, BackColor, and Font properties that determine the appearance of the text.
This chapter describes several ways you can use more advanced text features. Using a few Visual Basic tricks and a couple of API functions, you can create text written at an angle, text that is stretched or compressed, and text that uses more than one color or style. Figure 4.1 shows a few of the possibilities.
z0133-01.gif
Figure 4.1
Advanced text display.

 
< previous page page_113 next page >